/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcapi.entity;

import javax.validation.constraints.NotNull;

import com.easy.core.persistence.DataEntity;
import com.easy.common.utils.excel.annotation.ExcelField;

/**
 * 商品属性Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class ApiProductAttr extends DataEntity<ApiProductAttr> {
	
	private static final long serialVersionUID = 1L;
	private Integer productId;		// 产品ID，对应dfc_product的ID
	private Integer attrId;		// 商品属性ID,对应dfc_attributes的ID
	private Integer attrSelected;		// 默认0
	
	public ApiProductAttr() {
		super();
	}

	@NotNull(message="产品ID，对应dfc_product的ID不能为空")
	@ExcelField(title="产品ID，对应dfc_product的ID", align=2, sort=0)
	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	
	@NotNull(message="商品属性ID,对应dfc_attributes的ID不能为空")
	@ExcelField(title="商品属性ID,对应dfc_attributes的ID", align=2, sort=1)
	public Integer getAttrId() {
		return attrId;
	}

	public void setAttrId(Integer attrId) {
		this.attrId = attrId;
	}
	
	@ExcelField(title="默认0", align=2, sort=2)
	public Integer getAttrSelected() {
		return attrSelected;
	}

	public void setAttrSelected(Integer attrSelected) {
		this.attrSelected = attrSelected;
	}
	
}